package lab02.test36;

public abstract  class Student {
    String name;
    String category;
    double[] score;
    String grade;

    double avg(double[] score){
        double sum = 0;
        for (int i = 0; i < score.length; i++) {
            sum+=score[i];
        }

        return sum/score.length;
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public double[] getScore() {
        return score;
    }

    public void setScore(double[] score) {
        this.score = score;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }
}
